package top.zhan.chain;

/**
 * @author Zhan
 * @date 2022/10/9 14:47
 */
public abstract class RiskControlManager {
    protected String name;
    /**
     * 更严格的风控策略
     */
    protected RiskControlManager superior;

    public RiskControlManager(String name) {
        this.name = name;
    }
    /**
     * 设置更严格的风控策略
     * @param riskControlManager
     */
    public void setSuperior(RiskControlManager riskControlManager){
        this.superior = riskControlManager;
    }
    /**
     * 处理请求
     * @param request
     */
    public abstract void handlerRequest(Request request);
}
